package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysConfigErrorMapper;
import com.ruoyi.system.domain.SysConfigError;
import com.ruoyi.system.service.ISysConfigErrorService;

/**
 * 故障配置Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-05-11
 */
@Service
public class SysConfigErrorServiceImpl implements ISysConfigErrorService 
{
    @Autowired
    private SysConfigErrorMapper sysConfigErrorMapper;

    /**
     * 查询故障配置
     * 
     * @param errorId 故障配置主键
     * @return 故障配置
     */
    @Override
    public SysConfigError selectSysConfigErrorByErrorId(Long errorId)
    {
        return sysConfigErrorMapper.selectSysConfigErrorByErrorId(errorId);
    }

    /**
     * 查询故障配置列表
     * 
     * @param sysConfigError 故障配置
     * @return 故障配置
     */
    @Override
    public List<SysConfigError> selectSysConfigErrorList(SysConfigError sysConfigError)
    {
        return sysConfigErrorMapper.selectSysConfigErrorList(sysConfigError);
    }

    /**
     * 新增故障配置
     * 
     * @param sysConfigError 故障配置
     * @return 结果
     */
    @Override
    public int insertSysConfigError(SysConfigError sysConfigError)
    {
        return sysConfigErrorMapper.insertSysConfigError(sysConfigError);
    }

    /**
     * 修改故障配置
     * 
     * @param sysConfigError 故障配置
     * @return 结果
     */
    @Override
    public int updateSysConfigError(SysConfigError sysConfigError)
    {
        return sysConfigErrorMapper.updateSysConfigError(sysConfigError);
    }

    /**
     * 批量删除故障配置
     * 
     * @param errorIds 需要删除的故障配置主键
     * @return 结果
     */
    @Override
    public int deleteSysConfigErrorByErrorIds(Long[] errorIds)
    {
        return sysConfigErrorMapper.deleteSysConfigErrorByErrorIds(errorIds);
    }

    /**
     * 删除故障配置信息
     * 
     * @param errorId 故障配置主键
     * @return 结果
     */
    @Override
    public int deleteSysConfigErrorByErrorId(Long errorId)
    {
        return sysConfigErrorMapper.deleteSysConfigErrorByErrorId(errorId);
    }
}
